export interface TollGateItem {
  id?: number;
  tollGateName?: string;
  remarks?: string;
  createTime?: string;
}

export const Sex = {
  "0": "男",
  "1": "女",
};

export interface TollCollectorItem {
  id?: number;
  jobNo?: string;
  tollCollector?: string;
  //分组中的收费员id
  tollCollectorId?: number;
  sex?: number;
  face?: string;
  createTime?: string;
}

export interface DeviceItem {
  id?: number;
  videoServerIp?: string;
  port?: string;
  videoCameraName?: string;
  videoCameraUsername?: string;
  videoCameraPassword?: string;
  videoCameraIp?: string;
  openDetection?: number;
  qualifiedScore?: number;
  keywords?: string;
  deviceType?: number | null;
}

export interface DeviceTypeItem {
  typeId: number;
  typeName: string;
}

export interface TollBoothDeviceItem {
  deviceId: number;
  deviceName: string;
}

export interface TollBoothItem {
  id: string;
  tollBoothNo: string;
  tollBooth: string;
  remark: string;
  tollBoothDeviceList: TollBoothDeviceItem[];
}

export type PartialToolBoothItem = Partial<TollBoothItem>;

export interface DefinitionItem {
  id: number;
  aiInvalidScore: number;
  aiScoreProportion: number;
  algorithmServerAddress: string;
  dynamicKeyword: string;
  fullScore: number;
  proportionOfManualScoring: number;
  serviceDefinitionType: 1 | 2;
}

export interface ServiceManagementItem {
  collectorId: string;
  collector: string;
  term: number;
  gesture: number;
  termMan: number;
  gestureMan: number;
  aiAvgScore: number;
  manAvgScore: number;
  quality: number;
  date: string;
}
